package com.example.billw.mapper;

import com.example.billw.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    List<Users> getUsers(Users users);

    @Select("select * from user where id = #{id}")
    Users getUserById(int id);

    void updateUser(Users users);

    void updateUserPwd(Users user);

    void deleteUser(int id);

    void addUser(Users users);
}
